package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)" json:"username"`
	Password string `gorm:"type:varchar(255)" json:"password"`
	Tel      string `gorm:"type:char(11)" json:"tel"`
	Status   string `gorm:"type:int(10)" json:"status"`
	IsReal   string `gorm:"type:enum('0','1')" json:"isReal"`
}

type UserReal struct {
	gorm.Model
	UserID   int
	RealName string `gorm:"type:int(10)" json:"real_name"`
	IDCord   string `gorm:"type:varchar(255)" json:"id_cord"`
}
